﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TrainingCenterSystem.TestManagement
{
    public enum AnswerStatus
    {
        Unknown,
        Correct,
        Partial,
        Incorrect
    }

    public class TestAnswer
    {
        #region private members
        private string _id;
        private string _questionid;
        private AnswerStatus _answerStatus;
        private string _answerText;
        #endregion

        #region setters and getters
        /// <summary>
        /// Gets the answer-ID
        /// </summary>
        public string ID
        {
            get { return _id; }
        }

        /// <summary>
        /// Gets or sets the question-ID
        /// </summary>
        public string QuestionID
        {
            get { return _questionid; }
            set { _questionid = value; }
        }

        /// <summary>
        /// Gets or sets the answer status
        /// </summary>
        public AnswerStatus AnswerStatus
        {
            get { return _answerStatus; }
            set { _answerStatus = value; }
        }

        /// <summary>
        /// Gets or sets the answerText
        /// </summary>
        public string AnswerText
        {
            get { return _answerText; }
            set { _answerText = value; }
        }

        #endregion

        #region constructors
        /// <summary>
        /// Creates a TestAnswer object
        /// </summary>
        /// <param name="id">the answer-id</param>
        /// <param name="questionid">the questionid</param>
        public TestAnswer(string id, string questionid, string answerText)
        {
            _id = id;
            _questionid = questionid;
            _answerText = answerText;
            _answerStatus = AnswerStatus.Unknown;
        }
        #endregion

        #region methods
        #endregion

    }
}
